import { createVnode } from "./vnode";
import { render } from './renderer'


export function createApp(rootComponent: any, container: any) {
  return {
    mount(container) {
      //转换为vNode
      const vnode = createVnode(rootComponent);
      render(vnode, container);
    }
  };
}

